package com.bjpowernode.services;

import com.bjpowernode.entities.TCustomer;
import com.bjpowernode.querys.CustomerQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.io.OutputStream;
import java.util.List;

public interface CustomerService {
    @Transactional(rollbackFor = Exception.class)
    boolean convertCustomer(CustomerQuery customerQuery);

    PageInfo<TCustomer> getCustomersByPage(Integer current);

    void exportExcel(OutputStream outputStream, List<String> idList);

    TCustomer getCustomerById(Integer id);
}
